import React from "react";

const Index = () =>
{

    useEffect(() => {
        getTestIndex();
    },[]);

    // 测试请求
    const getTestIndex = async () =>{
        const result = await React.Http.upload('/index/index',{id:1,test:[1,2,3]});

        if(result.code === 1)
        {
            console.log(result.data);
        }else{
            console.log(result.msg);
        }
    }

    return (
        <>
            <h3>首页</h3>
        </>
    );
};

export default Index;
